package org.rain.core;


import com.baomidou.mybatisplus.extension.service.IService;
import org.rain.core.model.PersistenceModel;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * created by yangtong on 2025/4/6 下午8:51
 * <p>
 * 公共控制器类
 * <p>
 * 单表的增删改查接口由于代码高度相似，所以抽取成一个公共Controller
 *
 * @param <T> 实体类
 * @param <S> 实体类对应的service
 */
public class BaseController<T extends PersistenceModel, S extends IService<T>> {

    protected S baseService;

    @Autowired
    public void setBaseService(S baseService) {
        this.baseService = baseService;
    }
}
